package com.team7.home.controller.apiController;

import com.team7.common.vo.CommonResult;

import com.team7.home.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home/qian/banner")
public class ApiBannerController {
    @Autowired
    private BannerService bannerService;

    @GetMapping("getQianBanner")
    public CommonResult getQianBanner(){
        return bannerService.getQianBanner();
    }
}
